package com.ruoyi.project.query.paeaDsCusv.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.project.query.paeaDsLink.domain.DsCustAccLink;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.query.paeaDsCusv.mapper.PaeaDsCusvMapper;
import com.ruoyi.project.query.paeaDsCusv.domain.PaeaDsCusv;
import com.ruoyi.project.query.paeaDsCusv.service.IPaeaDsCusvService;

/**
 * 客户Service业务层处理
 *
 * @author gang.wei
 * @date 2020-04-06
 */
@Service
public class PaeaDsCusvServiceImpl extends ServiceImpl<PaeaDsCusvMapper, PaeaDsCusv> implements IPaeaDsCusvService
{
    @Autowired
    private PaeaDsCusvMapper paeaDsCusvMapper;

    /**
     * 查询客户列表
     *
     * @param paeaDsCusv 客户
     * @return 客户
     */
    @Override
    public List<PaeaDsCusv> selectPaeaDsCusvList(PaeaDsCusv paeaDsCusv)
    {
        return paeaDsCusvMapper.selectPaeaDsCusvList(paeaDsCusv);
    }

    /**
     * 新增客户
     *
     * @param paeaDsCusv 客户
     * @return 结果
     */
    @Override
    public int insertPaeaDsCusv(PaeaDsCusv paeaDsCusv)
    {
        return paeaDsCusvMapper.insertPaeaDsCusv(paeaDsCusv);
    }

    /**
     * 修改客户
     *
     * @param paeaDsCusv 客户
     * @return 结果
     */
    @Override
    public int updatePaeaDsCusv(PaeaDsCusv paeaDsCusv)
    {
        return paeaDsCusvMapper.updatePaeaDsCusv(paeaDsCusv);
    }

    @Override
    public List<DsCustAccLink> queryDsCustAccLink(DsCustAccLink dsCustAccLink) {
        return paeaDsCusvMapper.queryDsCustAccLink(dsCustAccLink);
    }

}
